package com.gable.exhibition.model;

import com.gable.common.util.PageUtil;

import java.io.*;
import java.util.Date;

public class Upkeep  extends PageUtil implements Serializable{
    private Long upkeepId;

    private String upkeepDate;

    private Long deviceId;

    private String upkeepNo;

    private String upkeepApplicant;

    private String upkeepApplicantPhone;

    private Long deviceStatus;

    private Long status;

    private String handleTime;

    private Long serviceId;

    private Long serviceType;

    private String dispathTime;

    private String hospitalContacts;

    private String hospitalPhone;

    private Long engineerId;

    private Integer travelTime;

    private String upkeepEndTime;

    private String upkeepContent;

    private String confirmTime;

    private Long confirmPerson;

    private String comment;

    private String remark;

    private String createTime;

    private Long createPerson;

    private String updateTime;

    private Long updatePerson;

    private Integer isDel;

    private Long hospitalId;

    private Long terraceHandlePerson;

    private Long endDeviceStatus;

    private String serviceName;

    private String serviceContacts;

    private String servicePhone;

    private Long commentStatus;   //评论状态(已评论:3501,未评论:3502,已回复:3503)

    private String engineerExpectedTime;//预计上门时间

    private String engineerResponseTime;//工程师响应时间

    private Integer examine;

    private String examineComment;

    private Long parentId;

    private String engineerName;

    private String mobile;

    public String getEngineerName() {
        return engineerName;
    }

    public void setEngineerName(String engineerName) {
        this.engineerName = engineerName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getExamine() {
        return examine;
    }

    public void setExamine(Integer examine) {
        this.examine = examine;
    }

    public String getExamineComment() {
        return examineComment;
    }

    public void setExamineComment(String examineComment) {
        this.examineComment = examineComment;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getServiceContacts() {
        return serviceContacts;
    }

    public void setServiceContacts(String serviceContacts) {
        this.serviceContacts = serviceContacts;
    }

    public String getServicePhone() {
        return servicePhone;
    }

    public void setServicePhone(String servicePhone) {
        this.servicePhone = servicePhone;
    }

    public Long getCommentStatus() {
        return commentStatus;
    }

    public void setCommentStatus(Long commentStatus) {
        this.commentStatus = commentStatus;
    }

    public String getEngineerExpectedTime() {
        return engineerExpectedTime;
    }

    public void setEngineerExpectedTime(String engineerExpectedTime) {
        this.engineerExpectedTime = engineerExpectedTime;
    }

    public String getEngineerResponseTime() {
        return engineerResponseTime;
    }

    public void setEngineerResponseTime(String engineerResponseTime) {
        this.engineerResponseTime = engineerResponseTime;
    }

    public Long getEndDeviceStatus() {
        return endDeviceStatus;
    }

    public void setEndDeviceStatus(Long endDeviceStatus) {
        this.endDeviceStatus = endDeviceStatus;
    }

    public Long getTerraceHandlePerson() {
        return terraceHandlePerson;
    }

    public void setTerraceHandlePerson(Long terraceHandlePerson) {
        this.terraceHandlePerson = terraceHandlePerson;
    }

    public Long getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(Long hospitalId) {
        this.hospitalId = hospitalId;
    }

    public Long getUpkeepId() {
        return upkeepId;
    }

    public void setUpkeepId(Long upkeepId) {
        this.upkeepId = upkeepId;
    }

    public String getUpkeepDate() {
        return upkeepDate;
    }

    public void setUpkeepDate(String upkeepDate) {
        this.upkeepDate = upkeepDate == null || upkeepDate.equals("") ? null : upkeepDate ;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public String getUpkeepNo() {
        return upkeepNo;
    }

    public void setUpkeepNo(String upkeepNo) {
        this.upkeepNo = upkeepNo;
    }

    public String getUpkeepApplicant() {
        return upkeepApplicant;
    }

    public void setUpkeepApplicant(String upkeepApplicant) {
        this.upkeepApplicant = upkeepApplicant;
    }

    public String getUpkeepApplicantPhone() {
        return upkeepApplicantPhone;
    }

    public void setUpkeepApplicantPhone(String upkeepApplicantPhone) {
        this.upkeepApplicantPhone = upkeepApplicantPhone;
    }

    public Long getDeviceStatus() {
        return deviceStatus;
    }

    public void setDeviceStatus(Long deviceStatus) {
        this.deviceStatus = deviceStatus;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public String getHandleTime() {
        return handleTime;
    }

    public void setHandleTime(String handleTime) {
        this.handleTime = handleTime == null || handleTime.equals("") ? null : handleTime;
    }

    public Long getServiceId() {
        return serviceId;
    }

    public void setServiceId(Long serviceId) {
        this.serviceId = serviceId;
    }

    public Long getServiceType() {
        return serviceType;
    }

    public void setServiceType(Long serviceType) {
        this.serviceType = serviceType;
    }

    public String getDispathTime() {
        return dispathTime;
    }

    public void setDispathTime(String dispathTime) {
        this.dispathTime = dispathTime == null || dispathTime.equals("") ? null : dispathTime ;
    }

    public String getHospitalContacts() {
        return hospitalContacts;
    }

    public void setHospitalContacts(String hospitalContacts) {
        this.hospitalContacts = hospitalContacts;
    }

    public String getHospitalPhone() {
        return hospitalPhone;
    }

    public void setHospitalPhone(String hospitalPhone) {
        this.hospitalPhone = hospitalPhone;
    }

    public Long getEngineerId() {
        return engineerId;
    }

    public void setEngineerId(Long engineerId) {
        this.engineerId = engineerId;
    }

    public Integer getTravelTime() {
        return travelTime;
    }

    public void setTravelTime(Integer travelTime) {
        this.travelTime = travelTime == null || travelTime.equals("") ? null : travelTime;
    }

    public String getUpkeepEndTime() {
        return upkeepEndTime;
    }

    public void setUpkeepEndTime(String upkeepEndTime) {
        this.upkeepEndTime = upkeepEndTime == null || upkeepEndTime.equals("") ? null : upkeepEndTime;

    }

    public String getUpkeepContent() {
        return upkeepContent;
    }

    public void setUpkeepContent(String upkeepContent) {
        this.upkeepContent = upkeepContent;
    }

    public String getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(String confirmTime) {
        this.confirmTime = confirmTime == null || confirmTime.equals("")?null : confirmTime;
    }

    public Long getConfirmPerson() {
        return confirmPerson;
    }

    public void setConfirmPerson(Long confirmPerson) {
        this.confirmPerson = confirmPerson;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Long getCreatePerson() {
        return createPerson;
    }

    public void setCreatePerson(Long createPerson) {
        this.createPerson = createPerson;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdatePerson() {
        return updatePerson;
    }

    public void setUpdatePerson(Long updatePerson) {
        this.updatePerson = updatePerson;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }


    public Upkeep myclone() {
        Upkeep upkeep = null;
          try { // 将该对象序列化成流,因为写在流里的是对象的一个拷贝，而原对象仍然存在于JVM里面。所以利用这个特性可以实现对象的深拷贝
                 ByteArrayOutputStream baos = new ByteArrayOutputStream();
                 ObjectOutputStream oos = new ObjectOutputStream(baos);
                 oos.writeObject(this);
                    // 将流序列化成对象
                  ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
              ObjectInputStream ois = new ObjectInputStream(bais);
              upkeep = (Upkeep) ois.readObject();
               } catch (IOException e) {
                  e.printStackTrace();
              } catch (ClassNotFoundException e) {
                  e.printStackTrace();
          }
        return upkeep;
       }
}